/*
 * @Author: namelll 2677065112@qq.com
 * @Date: 2023-06-02 15:29:46
 * @LastEditors: namelll 2677065112@qq.com
 * @LastEditTime: 2023-06-14 15:24:37
 * @FilePath: \vue3-ts-project\src\api\user\type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//登录接口需要携带的参数ts类型
export interface loginFormData {
    username: string
    password: string
}

//定义接口返回的参数ts类型
export interface ResponseData {
    code: number
    message: string
    ok: boolean
}

//登录接口返回数据类型
export interface loginResponseData extends ResponseData {
    data: string
}

//用户信息返回的数据类型
export interface userInfoResponseData extends ResponseData {
    data: {
        routes: string[],
        buttons: string[],
        roles: string[],
        name: string,
        avatar: string
    }
}
